@extends('layout.adminlayout')
@section('css')
<script src="/admin/js/metisMenu.min.js"></script>
<script src="/admin/js/custom.js"></script>
<link href="/admin/css/custom.css" rel="stylesheet">
@endsection
@section('content')
<div class="forms">
	<div class=" form-grids row form-grids-right">
		<div class="widget-shadow " data-example-id="basic-forms"> 
			<div class="form-title">
				<h4>型号编辑 :</h4>
			</div>
			<div class="form-body">
				<form action="/admin/module/update" method="post" class="form-horizontal">
					{{csrf_field()}}
					<input type="hidden" name="id" value="{{$info['tp_id']}}">
					<div class="form-group">
						<label for="inputEmail3" class="col-sm-2 control-label" style="width: 39%;margin-top: 5px;">
							所属供应商 :
						</label>
						<div class="col-sm-6">
							<select name="su_id" id="selector1" class="form-control1" style="width: 57%;float: right;height: 34px;">
								<option>请选择</option>
								@if(!null==$data)
									@foreach($data as $k => $v)
										<option value="{{$v['s_id']}}" @if( $info['t_su_id'] ==$v['s_id'] ) selected @endif >{{$v['s_name']}}</option>
									@endforeach
								@endif
							</select>
						</div>
					</div>
					<div class="form-group">
						<label for="inputPassword3" class="col-sm-2 control-label" style="width: 39%;margin-top: 5px">
							设备类型 :
						</label>
						<div class="col-sm-6">
							<select name="type" id="selector1" class="form-control1" style="width: 57%;float: right;height: 34px;">
								<option>请选择</option>
								@if($type != null)
									@foreach($type as $val)
										<option value="{{$val['id']}}"
												@if($val['id'] == $info['t_type'])
												selected
												@endif
										>{{$val['type']}}</option>
									@endforeach
								@endif
							</select>
						</div>
					</div>
					<div class="form-group">
						<label for="inputPassword3" class="col-sm-2 control-label" style="width: 39%;margin-top: 5px">
							设备型号 :
						</label>
						<div class="col-sm-6" style="width: 61%; float: right;">
							<input type="text" class="form-control" name="model" value="{{$info['t_model']}}" id="inputPassword3" placeholder="设备型号">
						</div>
					</div>
					<div class="form-group">
						<label for="inputPassword3" class="col-sm-2 control-label" style="width: 39%;margin-top: 5px;">
							硬件版本 :
						</label>
						<div class="col-sm-6" style="width: 61%; float: right;">
							<input type="text" class="form-control" name="software" value="{{$info['t_software']}}" id="inputPassword3" placeholder="固件版本" style="width: 99%;float: right;">
						</div>
					</div>
					<div class="form-group">
						<label for="inputPassword3" class="col-sm-2 control-label" style="width: 39%;margin-top: 5px;">
							软件版本 :
						</label>
						<div class="col-sm-6" style="width: 61%; float: right;">
							<input type="text" class="form-control" name="hardware" value="{{$info['t_hardware']}}" id="inputPassword3" placeholder="软件版本">
						</div>
					</div>
					<div class="col-sm-offset-2" style="margin-left: 0;">
						<!-- <input type="submit" class="btn btn-default" value="Submit"> -->
						<button type="submit" class="btn btn-default" style="width: 100%;">提交</button>
					</div>
				</form> 
			</div>
		</div>
	</div>
</div>
@endsection